package br.net.woodstock.tickettoride.jee6.web.security;

import javax.ejb.EJB;
import javax.enterprise.context.RequestScoped;
import javax.inject.Named;

import br.net.woodstock.rockframework.web.faces.util.ExceptionHandler;
import br.net.woodstock.rockframework.web.faces.util.Log;
import br.net.woodstock.tickettoride.api.access.UserService;
import br.net.woodstock.tickettoride.web.jsf.security.common.AbstractLoginBean;

@Named("loginBean")
@RequestScoped
@Log
@ExceptionHandler
public class LoginBean extends AbstractLoginBean {

	private static final long	serialVersionUID	= -3125757940452936893L;

	@EJB(name = "userService")
	private UserService			userService;

	@Override
	public UserService getUserService() {
		return this.userService;
	}

}
